<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Untitled Document</title>
        <link rel="stylesheet" type="text/css" href="../lib/resources/css/ext-all.css"/>
       <link rel="stylesheet" type="text/css" href="../lib/resources/css/xtheme-gray.css"/>
        <script type="text/javascript" src="../lib/js/ext-base-debug.js">
        </script>
        <!-- ENDLIBS -->
        <script type="text/javascript" src="../lib/js/ext-all-debug.js">
        </script>
        <script type="text/javascript" src="ButtonBar.js">
        </script>
		<script type="text/javascript" src="SelectBox.js">
        </script>
        <style type="text/css">
            .icon-grid {
                background-image: url("grid.png") !important;
            }
        </style>
        <script type="text/javascript">
            Ext.onReady(function(){
                var tb = new Ext.Toolbar({
                    height: 30,
					id:'taskBar',
                    region: 'south'
                });
				
                new Ext.Viewport({
                    layout: 'border',
                    items: [{
                        region: 'center',
                        id: 'workPanel',
						frame:true,
                        items: [{
                            xtype: 'button',
                            text: 'show',
                            handler: function(){
                                var win = Ext.WindowMgr.get('userWin');
                                if (!win) {
                                    win = new Ext.Window({
                                        title: '用户管理',
                                        renderTo: Ext.getCmp('workPanel').el,
                                        id: 'userWin',
                                        height: 500,
                                        width: 600,
										
                                        iconCls: 'icon-grid',
                                        plugins: 'buttonbar',
                                        maximizable: true,
										minimizable: true
                                    });
                                }
                                win.show();
                            }
                        }, {
                            xtype: 'button',
                            text: 'show',
                            handler: function(){
                                var win = Ext.WindowMgr.get('teacherWin');
                                if (!win) {
                                    win = new Ext.Window({
                                        title: '教师管理',
                                        renderTo: Ext.getCmp('workPanel').el,
                                        id: 'teacherWin',
                                        height: 500,
                                        width: 600,
                                        iconCls: 'icon-grid',
                                        plugins: 'buttonbar',
                                        minimizable: true,
                                        maximizable: true,
                                        listeners: {
                                            minimize: function(){
                                                win.hide();
                                            }
                                        }
                                    });
                                }
                                win.show();
                            }
                        }]
                    }, tb]
                });
            });
        </script>
    </head>
    <body>
    </body>
</html>
